# Contributor: Jens Pranaitis <jens@jenux.homelinux.org>
# Contributor: Simon Busch <morphis@gravedo.de>
pkgname=ratproxy
pkgver=1.58
pkgrel=1
pkgdesc="A passive web application security assessment tool"
url="http://code.google.com/p/ratproxy/"
depends=("openssl" "bash")
license=('APACHE')
arch=('i686')
source=(http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.gz)
md5sums=('e4d5e64a0bd8f8f92032cbcee77fb3cf')
build() {
	cd "${srcdir}"/ratproxy
	sed -i "s|-O3|${CFLAGS}|g" Makefile
	# build
	make || return 1
	# create directories and install files
	mkdir -p "${pkgdir}"/usr/{share/ratproxy,bin}
	install -m755 "${srcdir}"/ratproxy/ratproxy "${pkgdir}"/usr/bin/ratproxy
	install -m755 "${srcdir}"/ratproxy/ratproxy-report.sh "${pkgdir}"/usr/share/ratproxy/ratproxy-report.sh
	install -m644 "${srcdir}"/ratproxy/ratproxy-back.png "${pkgdir}"/usr/share/ratproxy/ratproxy-back.png
}
